<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>押金配置管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/jiujiudevice/jiuCashConfig/">押金配置列表</a></li>
		<li style="display:none;"><a href="${ctx}/jiujiudevice/jiuCashConfig/form?id=${jiuCashConfig.id}">押金配置<shiro:hasPermission name="jiujiudevice:jiuCashConfig:edit"></shiro:hasPermission><shiro:lacksPermission name="jiujiudevice:jiuCashConfig:edit">查看</shiro:lacksPermission></a></li>
		
<%-- 		<shiro:hasPermission name="jiujiudevice:jiuCashConfig:edit"><li><a href="${ctx}/jiujiudevice/jiuCashConfig/form">押金配置添加</a></li></shiro:hasPermission>
 --%>	</ul>
<%-- 	<form:form id="searchForm" modelAttribute="jiuCashConfig" action="${ctx}/jiujiudevice/jiuCashConfig/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	</form:form> --%>
	<tags:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered ">
		<thead><tr>
		<th>ID</th>
		<th>标题</th>
		<th>金额</th>
		<th>创建时间</th>
		<shiro:hasPermission name="jiujiudevice:jiuCashConfig:edit"><th>操作</th></shiro:hasPermission></tr></thead>
		<tbody>
		<c:forEach items="${page.list}" var="jiuCashConfig">
			<tr>
			   <td>${jiuCashConfig.id }</td>
				<td><a href="${ctx}/jiujiudevice/jiuCashConfig/form?id=${jiuCashConfig.id}">${jiuCashConfig.title}</a></td>
				<td>${jiuCashConfig.money }<span style="color:grey;">&nbsp;元</span></td>
				<td><fmt:formatDate value="${jiuCashConfig.createTime }" type="both"/></td>
				<shiro:hasPermission name="jiujiudevice:jiuCashConfig:edit"><td>
    				<a class="btn btn-success" href="${ctx}/jiujiudevice/jiuCashConfig/form?id=${jiuCashConfig.id}">修改</a>
					<a class="btn btn-danger" href="${ctx}/jiujiudevice/jiuCashConfig/delete?id=${jiuCashConfig.id}" onclick="return confirmx('确认要删除该押金配置吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>
